
package com.kaciula.letsdoit.service;

import java.util.Date;

public class WasteRequest {

    private int BagEq;

    private String Description;

    private int Diameter;

    private int Height;

    private String ID;

    private boolean IsAccessDifficult;

    private boolean IsAccessDifficultOnRain;

    private boolean IsDispersed;

    private boolean IsTest;

    private int Length;

    private Location Location;

    private int PercentageCarton;

    private int PercentageGlass;

    private int PercentageMetal;

    private int PercentageOrganic;

    private int PercentagePlastic;

    private int PercentageRawMatterials;

    private int PercentageRubber;

    private int PercentageVolume;

    private String PostingDateTime;

    private int Width;

    public WasteRequest() {
        Location = new Location();
    }

    /**
     * @param bagEq the bagEq to set
     */
    public void setBagEq(int bagEq) {
        BagEq = bagEq;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        Description = description;
    }

    /**
     * @param diameter the diameter to set
     */
    public void setDiameter(int diameter) {
        Diameter = diameter;
    }

    /**
     * @param height the height to set
     */
    public void setHeight(int height) {
        Height = height;
    }

    /**
     * @param iD the iD to set
     */
    public void setID(String iD) {
        ID = iD;
    }

    /**
     * @param isAccessDifficult the isAccessDifficult to set
     */
    public void setIsAccessDifficult(boolean isAccessDifficult) {
        IsAccessDifficult = isAccessDifficult;
    }

    /**
     * @param isAccessDifficultOnRain the isAccessDifficultOnRain to set
     */
    public void setIsAccessDifficultOnRain(boolean isAccessDifficultOnRain) {
        IsAccessDifficultOnRain = isAccessDifficultOnRain;
    }

    /**
     * @param isDispersed the isDispersed to set
     */
    public void setIsDispersed(boolean isDispersed) {
        IsDispersed = isDispersed;
    }

    /**
     * @param isTest the isTest to set
     */
    public void setIsTest(boolean isTest) {
        IsTest = isTest;
    }

    /**
     * @param length the length to set
     */
    public void setLength(int length) {
        Length = length;
    }

    /**
     * @param location the location to set
     */
    public void setLocation(double latitude, double longitude) {
        Location.setLatitude(latitude);
        Location.setLongitude(longitude);
    }

    /**
     * @param percentageCarton the percentageCarton to set
     */
    public void setPercentageCarton(int percentageCarton) {
        PercentageCarton = percentageCarton;
    }

    /**
     * @param percentageGlass the percentageGlass to set
     */
    public void setPercentageGlass(int percentageGlass) {
        PercentageGlass = percentageGlass;
    }

    /**
     * @param percentageMetal the percentageMetal to set
     */
    public void setPercentageMetal(int percentageMetal) {
        PercentageMetal = percentageMetal;
    }

    /**
     * @param percentageOrganic the percentageOrganic to set
     */
    public void setPercentageOrganic(int percentageOrganic) {
        PercentageOrganic = percentageOrganic;
    }

    /**
     * @param percentagePlastic the percentagePlastic to set
     */
    public void setPercentagePlastic(int percentagePlastic) {
        PercentagePlastic = percentagePlastic;
    }

    /**
     * @param percentageRawMatterials the percentageRawMatterials to set
     */
    public void setPercentageRawMatterials(int percentageRawMatterials) {
        PercentageRawMatterials = percentageRawMatterials;
    }

    /**
     * @param percentageRubber the percentageRubber to set
     */
    public void setPercentageRubber(int percentageRubber) {
        PercentageRubber = percentageRubber;
    }

    /**
     * @param percentageVolume the percentageVolume to set
     */
    public void setPercentageVolume(int percentageVolume) {
        PercentageVolume = percentageVolume;
    }

    /**
     * @param postingDateTime the postingDateTime to set
     */
    public void setPostingDateTime(Date postingDateTime) {
        PostingDateTime = String.format("/Date(%d)/", postingDateTime.getTime());
    }

    /**
     * @param width the width to set
     */
    public void setWidth(int width) {
        Width = width;
    }

    private class Location {
        private double Latitude;

        private double Longitude;

        /**
         * @param latitude the latitude to set
         */
        public void setLatitude(double latitude) {
            Latitude = latitude;
        }

        /**
         * @param longitude the longitude to set
         */
        public void setLongitude(double longitude) {
            Longitude = longitude;
        }

        /**
         * @return the latitude
         */
        @SuppressWarnings("unused")
        public double getLatitude() {
            return Latitude;
        }

        /**
         * @return the longitude
         */
        @SuppressWarnings("unused")
        public double getLongitude() {
            return Longitude;
        }
    }

    /**
     * @return the bagEq
     */
    public int getBagEq() {
        return BagEq;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return Description;
    }

    /**
     * @return the diameter
     */
    public int getDiameter() {
        return Diameter;
    }

    /**
     * @return the height
     */
    public int getHeight() {
        return Height;
    }

    /**
     * @return the iD
     */
    public String getID() {
        return ID;
    }

    /**
     * @return the isAccessDifficult
     */
    public boolean isIsAccessDifficult() {
        return IsAccessDifficult;
    }

    /**
     * @return the isAccessDifficultOnRain
     */
    public boolean isIsAccessDifficultOnRain() {
        return IsAccessDifficultOnRain;
    }

    /**
     * @return the isDispersed
     */
    public boolean isIsDispersed() {
        return IsDispersed;
    }

    /**
     * @return the isTest
     */
    public boolean isIsTest() {
        return IsTest;
    }

    /**
     * @return the length
     */
    public int getLength() {
        return Length;
    }

    /**
     * @return the location
     */
    public Location getLocation() {
        return Location;
    }

    /**
     * @return the percentageCarton
     */
    public int getPercentageCarton() {
        return PercentageCarton;
    }

    /**
     * @return the percentageGlass
     */
    public int getPercentageGlass() {
        return PercentageGlass;
    }

    /**
     * @return the percentageMetal
     */
    public int getPercentageMetal() {
        return PercentageMetal;
    }

    /**
     * @return the percentageOrganic
     */
    public int getPercentageOrganic() {
        return PercentageOrganic;
    }

    /**
     * @return the percentagePlastic
     */
    public int getPercentagePlastic() {
        return PercentagePlastic;
    }

    /**
     * @return the percentageRawMatterials
     */
    public int getPercentageRawMatterials() {
        return PercentageRawMatterials;
    }

    /**
     * @return the percentageRubber
     */
    public int getPercentageRubber() {
        return PercentageRubber;
    }

    /**
     * @return the percentageVolume
     */
    public int getPercentageVolume() {
        return PercentageVolume;
    }

    /**
     * @return the postingDateTime
     */
    public String getPostingDateTime() {
        return PostingDateTime;
    }

    /**
     * @return the width
     */
    public int getWidth() {
        return Width;
    }
}
